﻿<%@ page language="java" pageEncoding="UTF-8" %>
<%@ include file="/WEB-INF/core/common/top.jsp" %>

<script language="javascript">
    function searchForm() {
    	var orgId = document.getElementById("q_org_id").value;
    	var orgParId = document.getElementById("q_par_org_id").value;
    	var orgName = document.getElementById("q_name").value;
    	var orgStatus = document.getElementById("q_status").value;
    	var url = "${ctx}/system/orgManager.action?act=query&busiId=searchOrg&q_org_id="+orgId+"&q_par_org_id="+orgParId+"&q_name="+orgName+"&q_status="+orgStatus;
    	submit_ajax(url,'mainframe');
    }
</script>
<body style="overflow-x:hidden;overflow-y:auto;">
	<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		<%@include file="/WEB-INF/core/common/message.jsp"  %>
		<tr><td><table border="0" align="center" cellpadding="0" cellspacing="0">
		    <td width="8" height="27"><img src="${ctx}/core/images/button_05.gif" width="8" height="27" /></td>
		    <td width="99%" align="left" background="${ctx}/core/images/button_06.gif" class="bluecu">&nbsp;<img src="${ctx}/core/images/icon_04.gif" />&nbsp;<s:text name="info.orgMaintenance"/></td>
		    <td width="8"><img src="${ctx}/core/images/button_07.gif" width="8" height="27" /></td>
		    </table>
		    </td>
		</tr>
		<tr>
			<td colspan="3" class="biaoge"  valign="top">
				<table width="100%" border="0" align="center" cellspacing="0">
					<tr>
				    	<td height="10"></td>
					</tr>  
					<tr>
						<!-- 查询条件 -->
						
						<td class="tabulation" colspan="3">
					    	<div id="menu1"><img src="${ctx}/core/images/icon_13.gif"><s:text name="info.queryCondition" /></div>
					    	<form name="mainForm" method="post" onsubmit="searchForm(); return false;" >
					    	<table width="100%" border="0" cellpadding="0" cellspacing="1" bordercolor="#FFFFFF">
						        	<input type="hidden" name="act" value="query"/>
									<input type="hidden" name="busiId" value="searchOrg"/>
							    	<tr align="left">
								    	<td width="6%" height="20" bgcolor="#DDE4EA">&nbsp;&nbsp;<s:text name="org.id" /></td>
								    	<td width="27%" bgcolor="#DDE4EA">
								        	<exts:textfield name="q_org_id" value="%{q_org_id}" class="textbox_css" style="width:150px" /></td>        
								    	<td width="6%" bgcolor="#DDE4EA">&nbsp;&nbsp;<s:text name="org.par.id" /></td>
								    	<td width="27%" bgcolor="#DDE4EA">
								        	<exts:textfield name="q_par_org_id" value="%{q_par_org_id}" class="textbox_css" style="width:150px"/>
								    	</td>
								    </tr>
								    <tr align="left">
								    	<td width="6%" height="20" bgcolor="#DDE4EA">&nbsp;&nbsp;<s:text name="org.name" /></td>
								    	<td width="27%" bgcolor="#DDE4EA">
								        	<exts:textfield name="q_name" value="%{q_name}" class="textbox_css" style="width:150px" /></td>        
								    	<td width="6%" bgcolor="#DDE4EA">&nbsp;&nbsp;<s:text name="org.status" /></td>
								    	<td width="27%" bgcolor="#DDE4EA">
								        	<exts:textfield name="q_status" value="%{q_status}" class="textbox_css" style="width:150px"/>
								    	</td>
								    </tr>
				    		        <tr>
							        	<td height="20" colspan="4" align="right" bgcolor="#DDE4EA">
											<input type="submit" class="btn" name="quary" value="<s:text name="log.manage.query" />" />
								    	</td>
							        </tr>		       
						       
							</table>
							</form>
						</td>
						 
						<!-- 查询条件结束 -->
				  	</tr>
				  	<tr>
				    	<td height="5"></td>
				  	</tr>
				  	<tr>
				    	<td height="10" background="${ctx}/core/images/line5.gif"></td>
				    </tr>
				  	<tr>
				    	<td height="5"></td>
				  	</tr>
			        <tr>
			        	<td height="25" align="left" valign="top">
							<input name="button" type="button" class="btn" onclick="submit_ajax('${ctx}/system/orgDataOpt.action?pageState=add','mainframe');" value="<s:text name='org.new'/>"/>			  
					    </td>
			        </tr>
					<!-- 表格 -->	
					<tr>
						<td>	
					    	<table id="content" width="100%" border="0" cellpadding="0" cellspacing="1" bgcolor="#A6A6A6">
					        	<tr bgcolor="#C7D6EA">
					        		<td width="5%" height="20" align="center" class="table_head"><s:text name="parmData.id" /></td>
					        		<td width="15%" class="table_head"><s:text name="org.id" /></td>
					        		<td width="15%" class="table_head"><s:text name="org.par.id" /></td>
					        		<td width="40%" align="center" class="table_head"><s:text name="org.name" /></td>
					        		<td width="15%" align="center" class="table_head"><s:text name="org.status" /></td>
					        		<td width="10%" align="center" class="table_head"><s:text name="parmData.operate" /></td>
					        	</tr>
					        	<s:iterator value="pageInfo.searchResult" id="it" status="st">
						        <tr>
						        	<td height="20" align="center">&nbsp;<s:property value="%{(pageInfo.currentPageNo-1)*pageInfo.pageSize+#st.index+1}" /></td>
						        	<td align="center">&nbsp;<exts:property value="0"/></td>
						        	<td align="center">&nbsp;<exts:property value="1"/></td>
						        	<td align="center">&nbsp;<exts:property value="2"/></td>
						        	<td align="center">&nbsp;
						        		<s:if test="#it[3]==1">
							        		<s:text name="label.Yes" />
							        	</s:if>
							       		<s:else>
							        		<s:text name="label.No" />		              
							        	</s:else></td>
							      	<td align="center">
							          	<table width="50" height="16" border="0" cellpadding="0" cellspacing="0">
							                <tr>
								                <td width="22" align="right"><a href="#" onclick="submit_ajax('${ctx}/system/orgDataOpt.action?act=query&busiId=searchOrg&pageState=edit&q_org_id=<exts:property value='0'/>','mainframe');"><img src="${ctx}/core/images/edit.gif" name="icon_064" width="16" height="16" border="0" id="icon_064" style="CURSOR: hand" title="<s:text name='parmData.modify' />"/></a></td>
								                <td width="22" align="right"><a href="#" onclick="if (confirm('<s:text name="message.delete.confirm" />')){ submit_ajax_redirect('${ctx}/system/orgData.action?act=delete&paramData.orgId=<exts:property value='0'/>',null,null);}" ><img src="${ctx}/core/images/del.gif" name="icon_074" width="16" height="16" border="0" id="icon_074" style="CURSOR: hand" title="<s:text name='parmData.delete' />"/></a></td>
							                </tr>
							          	</table>
							        </td>
						    	</tr>
					    		</s:iterator>
							</table>
					<!-- 表格结束 -->			  
					
					<!-- 下分页结束 -->
							<table width="100%" border="0" cellspacing="0" cellpadding="0">
								<tr><td>${pagination}</td></tr>
							</table>
					<!-- 下分页结束 -->				
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>

<script>
	tables('content',null);
</script>